public class GenericTest {
    public static void main(String[] args) {
        // 所有的泛型实例化后的具体类型都是引用类型
        Generic<Integer> generic = new Generic<>(666);

        generic.showTpye();

        Integer integer = generic.getObject();

        System.out.println("integer = " + integer);

        Generic<String> generic1 = new Generic<>("Hello, World!");

        String s = generic1.getObject();
        System.out.println("s = " + s);

    }
}
